<?php
/**
 * supplier -->products
 *
 * @author Mike Gao
 */
class SProductViewModel extends ViewModel{
    protected $pk  = 'Product.id';

    public $viewFields = array(
        'Product' => array('id', 'name', 'ename','cas','formula','weight','nature'),
        'Supplier_product' => array('id'=>'spid','supplier_id', '_on' => 'Supplier_product.product_id = Product.id'),
    );


}
?>
